package com.cskaoyan.day2;

import java.util.Scanner;

public class JudgingParity {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数：");
        judgingParity(sc.nextInt());
    }

    private static void judgingParity(int nextInt) {
        if (nextInt % 2 == 0) {
            System.out.println(nextInt + "是偶数");
            return;
        }
        System.out.println(nextInt + "是奇数");
    }
}
